package com.umakr.ax.core.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author gx
 */
public class ServerListener implements ServletContextListener {
	protected final Log logger = LogFactory.getLog(this.getClass());

	@Override
    public void contextDestroyed(ServletContextEvent contextEvent) {
		// Do nothing because of X and Y.
	}

	@Override
    public void contextInitialized(ServletContextEvent contextEvent) {
		logger.info("=================================");
		logger.info(String.format("系统[%s]启动完成!!!", contextEvent.getServletContext().getServletContextName()));
		logger.info("=================================");
	}
}